import request from '@/utils/request'

// 查询题库题干列表
export function listQuestion(query) {
  return request({
    url: '/question/question/list',
    method: 'get',
    params: query
  })
}

// 查询题库题干详细
export function getQuestion(questionId) {
  return request({
    url: '/question/question/' + questionId,
    method: 'get'
  })
}

// 新增题库题干
export function addQuestion(data) {
  return request({
    url: '/question/question',
    method: 'post',
    data: data
  })
}

// 修改题库题干
export function updateQuestion(data) {
  return request({
    url: '/question/question',
    method: 'put',
    data: data
  })
}

// 删除题库题干
export function delQuestion(questionId) {
  return request({
    url: '/question/question/' + questionId,
    method: 'delete'
  })
}
// 新增试卷作业
export function addPapers(data) {
  return request({
    url: '/papers/papers',
    method: 'post',
    data: data
  })
}

// Ai生成教案，生成方式知识库+openai
export function TecherLessonPlan(data) {
  return request({
    url: '/TecherLessonPlan/TecherLessonPlan/kkk',
    method: 'get',
    params: data
  })
}